package cc.aiee.zalopay.config;

import cc.aiee.core.bean.PayBaseConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class ZalopayConfig extends PayBaseConfig{

	private String appId;
	private String key1;
	private String key2;
//	private String endpoint="https://sb-openapi.zalopay.vn/v2/create";
	
	/**
	 * 支付回调地址
	 */
	private String notifyUrlPay;
	
	public String getway(String path) {
		if(sandbox == true) {
			return "https://sb-openapi.zalopay.vn" + path;
		}
		return 	"https://openapi.zalopay.vn"+path;
	}
}
